package com.bnq.logc.logger

import android.util.Log
import com.bnq.logc.LogcLevel

class PrinterLogger : Logger {
    override fun isEnabled(): Boolean = true

    override fun log(level: Int, tag: String, log: String) {
        when(level){
            LogcLevel.VERBOSE -> Log.v(tag,log)
            LogcLevel.DEBUG -> Log.d(tag,log)
            LogcLevel.INFO -> Log.i(tag,log)
            LogcLevel.WARN -> Log.w(tag,log)
            LogcLevel.ERROR -> Log.e(tag,log)
            else -> Log.e(tag,log)
        }
    }
}